import request from '@/utils/request'
export default () => {

	const getYearRecord=async(str)=>{
		return  await request.get(`mini/record/statistics/year?yearStr=${str}`)
	}
	
	const getMonthRecord=async(str)=>{
		return  await request.get(`mini/record/statistics/month?monthStr=${str}`)
	}
	const AnnualRecord=async()=>{
		return  await request.get(`mini/record/statistics/annual`)
	}
	
	return {
		getYearRecord,
		getMonthRecord,
		AnnualRecord
	}
}